package net.inxweb.bluemeerkat.web.rest.client.glossary;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import net.inxweb.bluemeerkat.domain.model.glossary.Attribute;
import net.inxweb.bluemeerkat.domain.model.glossary.GlossaryType;

import org.jboss.resteasy.client.ClientResponse;
import org.springframework.transaction.annotation.Transactional;


@Path("glossaryservice")
@Transactional
public interface GlossaryClient { 
    @GET
    @Path("glossary/type")
    @Produces(MediaType.APPLICATION_JSON)
    ClientResponse<GlossaryType> findAllGlossaryType();

    @GET
    @Path("glossary/type/{id}")
    @Produces(MediaType.APPLICATION_JSON)
    ClientResponse<GlossaryType> findGlossaryType(@PathParam("id") Long id);

    @GET
    @Path("glossary/type/{id}/attribute")
    @Produces(MediaType.APPLICATION_JSON) 
    ClientResponse<Attribute> findAllAttributeOfGlossaryType();
}
